package client;

import com.pray.client.RpClientProxy;
import com.pray.service.RpcService;
import com.pray.service.RpcServiceRequest;
import com.pray.service.RpcServiceResponse;

/**
 * Client
 *
 * @author 春江花朝秋月夜
 * @since 2024/1/8 21:09
 */
public class Client {
    public static void main(String[] args) {
        RpClientProxy proxy = new RpClientProxy();
        RpcService rpcService=proxy.getService(RpcService.class);
        RpcServiceRequest request=new RpcServiceRequest("rainy");
        RpcServiceResponse response=rpcService.response(request);

        String msg=response.getMsg();
        System.out.println(msg);

    }
}
